
/**
 房间运营状态
 *
*/

import { State } from "framework/FSM/AState";

 

import { StationNetwork } from "GameLoop/Path/StationNetwork";
import { ATeamCombat } from "GameLoop/WorldState/EntityManager/Entitys/team/war/TeamCombat";
import { ActionArgHelper } from "../../../ActionManager/ActionArgHelper";
 


/**
 * 一字长蛇阵
*/
export class State_LineMove<T extends IStateArg<ATeamCombat,ITaskDeclare["team"]>> extends State<T>
{
    public getEntryActions(arg: T): Action[]
    {
         
        return []
    }
    public getExitActions(arg: T): Action[]
    {
         
        return []
    }
    public getActions(arg:T):Action[]
    {
        // 一字长蛇阵移动
        // lineMove Action
        const movetarget = arg.entity.moveTarget();
        if(movetarget)
        {
            const action  =ActionArgHelper.actionTeamMoveto(arg.entity,movetarget,{},"lineMove")
            return [action,ActionArgHelper.actionTeamVisual(arg.entity)]
        }
        return [];
    }

}
